﻿using System.Data.Entity;
using System.Linq;
using WebPic.Sample.Comum;
using WebPic.Sample.Modelo.Entidades;
using WebPic.Sample.Modelo.Repositorios.Interfaces;
using WebPic.Sample.Modelo.Specifications;

namespace WebPic.Sample.Modelo.Repositorios
{
    public class RepositoryRepresentante : Repository<Representante>, IRepositoryRepresentante
    {
        public RepositoryRepresentante(DbContext context) : base(context) { }

        public IQueryable<Representante> NomeComecaCom(string nome)
        {
            return Get(RepresentanteSpecification.NomeComecaCom(nome));
        }
    }
}